#ifndef OXFORDFULLLISTUPDATER_H
#define OXFORDFULLLISTUPDATER_H

#include <QRunnable>
#include <QObject>

#include "database-manager.h"
#include "oxford-parser.h"
#include "oxford-loader.h"

namespace Oxford
{

class FullListUpdater : public QObject, public QRunnable
{
    Q_OBJECT
private:
    Core::DatabaseManager* databaseManager;
    Parser oxfordParser;
    Loader oxfordLoader;
public:
    explicit FullListUpdater();
    ~FullListUpdater();

    void run();
signals:
    void updateStarted();
    void updateFinished();

    void logMessage(const QString& message);
    void logError(const QString& error);
};

}

#endif // OXFORDFULLLISTUPDATER_H
